package com.ylbh.modules.member.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ylbh.common.pojo.member.dto.ShoppingVoucherRechargeListDTO;
import com.ylbh.common.pojo.member.vo.RechargeExcelVO;
import com.ylbh.common.pojo.member.vo.ShoppingVoucherRechargeListVO;
import com.ylbh.common.pojo.member.vo.SysManagementIntegralVO;
import com.ylbh.modules.business.entity.ShoppingUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ShoppingVoucherRechargeMapper extends BaseMapper<ShoppingUser> {

    /**
     * 购物券充值记录
     * @param rechargeListDTO
     * @param page
     * @return
     */
    List<ShoppingVoucherRechargeListVO> selectShoppingVoucherRechargeList(@Param(value = "rechargeListDTO")ShoppingVoucherRechargeListDTO rechargeListDTO, Page page);

    /**
     * 系统管理积分
     * @param rechargeListDTO
     * @param page
     * @return
     */
    List<SysManagementIntegralVO> selectSysManagementIntegral(@Param(value = "rechargeListDTO")ShoppingVoucherRechargeListDTO rechargeListDTO, Page page);

    List<RechargeExcelVO> selectRechargeExcel(String startTime, String endTime, String keywords, String payType, String userType);

    String selectCheckComment(String userName);
}
